package org.kgc.alanhealth.mapper;

import org.kgc.alanhealth.entity.HospitalArticle;

import java.util.List;

/**
* @author 27493
* @description 针对表【hospital_article】的数据库操作Mapper
* @createDate 2024-09-10 10:42:07
* @Entity org.kgc.alanhealth.entity.HospitalArticle
*/
public interface HospitalArticleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(HospitalArticle record);

    int insertSelective(HospitalArticle record);

    HospitalArticle selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HospitalArticle record);

    int updateByPrimaryKey(HospitalArticle record);

    List<HospitalArticle> getHotArticles(Integer from,Integer pageSize);

    List<HospitalArticle> findByAntiId(Integer antiId);

    List<HospitalArticle> findByAntiTle(String antiTitle);

    int getAllByArticlesCount();
}
